<?php
/**
 * Setup the application environment
 */

define('APPLICATION_ROOT', dirname(dirname(dirname(__FILE__)))."/" );
define('APPLICATION_PATH', dirname(dirname(__FILE__))."/" );

define('LIBRARIES_PATH', APPLICATION_ROOT.'libraries/');
set_include_path(LIBRARIES_PATH . PATH_SEPARATOR . get_include_path());

define('ZEND_VERSION', 'Zend-1.7.2');
define('ZEND_PATH', LIBRARIES_PATH.'Zend/'.ZEND_VERSION.'/');
set_include_path(ZEND_PATH . PATH_SEPARATOR . get_include_path());

define('APPLICATION_TMP_DIR', APPLICATION_ROOT . 'tmp/');
define('APPLICATION_CACHE_DIR', APPLICATION_ROOT . APPLICATION_TMP_DIR . 'cache/');
define('APPLICATION_LOG_DIR', APPLICATION_ROOT . 'log/');
define('APPLICATION_LIB_DIR', APPLICATION_PATH . 'lib/');
define('APPLICATION_PUBLIC_DIR', APPLICATION_ROOT . 'public/');